//
// Source code recreated from a .class file by IntelliJ IDEA
// (powered by FernFlower decompiler)
//

package corntab;

import java.io.PrintWriter;
import java.io.StringWriter;
import java.util.Calendar;

public class CrontabEntry {
    private String _$32470 = "0";
    private String _$49648 = "*";
    private String _$49616 = "*";
    private String _$16391 = "*";
    private String _$49649 = "*";
    private String _$49650 = "*";
    private String _$49651 = "*";
    private boolean[] _$49625;
    private boolean[] _$49583;
    private boolean[] _$49626;
    private boolean[] _$49627;
    private boolean[] _$49628;
    private boolean[] _$49629;
    private boolean[] _$49584;

    CrontabEntry() {
    }

    public void setHours(String hours) {
        this._$49648 = hours;
    }

    public void setMinutes(String minutes) {
        this._$49616 = minutes;
    }

    public void setSeconds(String seconds) {
        this._$32470 = seconds;
    }

    public void setMonths(String months) {
        this._$16391 = months;
    }

    public void setDaysOfWeek(String daysOfWeek) {
        this._$49649 = daysOfWeek;
    }

    public void setDaysOfMonth(String daysOfMonth) {
        this._$49650 = daysOfMonth;
    }

    public void setYears(String years) {
        this._$49651 = years;
    }

    public void setBHours(boolean[] bHours) {
        this._$49625 = bHours;
    }

    public void setBMinutes(boolean[] bMinutes) {
        this._$49626 = bMinutes;
    }

    public void setBMonths(boolean[] bMonths) {
        this._$49627 = bMonths;
    }

    public void setBDaysOfWeek(boolean[] bDaysOfWeek) {
        this._$49628 = bDaysOfWeek;
    }

    public void setBDaysOfMonth(boolean[] bDaysOfMonth) {
        this._$49629 = bDaysOfMonth;
    }

    public void setBSeconds(boolean[] bSeconds) {
        this._$49583 = bSeconds;
    }

    public void setBYears(boolean[] bYears) {
        this._$49584 = bYears;
    }

    public String getHours() {
        return this._$49648;
    }

    public String getMinutes() {
        return this._$49616;
    }

    public String getSeconds() {
        return this._$32470;
    }

    public String getMonths() {
        return this._$16391;
    }

    public boolean[] getBHours() {
        return this._$49625;
    }

    public boolean[] getBMinutes() {
        return this._$49626;
    }

    public boolean[] getBMonths() {
        return this._$49627;
    }

    public boolean[] getBDaysOfWeek() {
        return this._$49628;
    }

    public boolean[] getBDaysOfMonth() {
        return this._$49629;
    }

    public boolean[] getBSeconds() {
        return this._$49583;
    }

    public boolean[] getBYears() {
        return this._$49584;
    }

    public String getDaysOfWeek() {
        return this._$49649;
    }

    public String getDaysOfMonth() {
        return this._$49650;
    }

    public String getYear() {
        return this._$49651;
    }

    public String toString() {
        String var2;
        try {
            new CrontabParser();
            var2 = CrontabParser.unmarshall(this);
            return var2;
        } catch (Exception var3) {
            var2 = var3.toString();
            return var2;
        }
    }

    public String toXML() {
        StringWriter stringWriter = new StringWriter();
        PrintWriter printWriter = new PrintWriter(stringWriter, true);
        this.toXML(printWriter);
        return stringWriter.toString();
    }

    public void toXML(PrintWriter pw) {
        pw.println("<crontabentry>");
        pw.println(String.valueOf(String.valueOf((new StringBuffer("<seconds>")).append(this._$32470).append("</seconds> "))));
        pw.println(String.valueOf(String.valueOf((new StringBuffer("<minutes>")).append(this._$49616).append("</minutes> "))));
        pw.println(String.valueOf(String.valueOf((new StringBuffer("<hours>")).append(this._$49648).append("</hours> "))));
        pw.println(String.valueOf(String.valueOf((new StringBuffer("<daysofmonth>")).append(this._$49650).append("</daysofmonth> "))));
        pw.println(String.valueOf(String.valueOf((new StringBuffer("<months>")).append(this._$16391).append("</months> "))));
        pw.println(String.valueOf(String.valueOf((new StringBuffer("<daysofweek>")).append(this._$49649).append("</daysofweek> "))));
        pw.println(String.valueOf(String.valueOf((new StringBuffer("<years>")).append(this._$49651).append("</years> "))));
        pw.println("</crontabentry>");
    }

    public boolean equals(Object obj) {
        if (obj instanceof Calendar) {
            return this.equalsCalendar((Calendar)obj);
        } else {
            return obj instanceof CrontabEntry ? this._$49657((CrontabEntry)obj) : false;
        }
    }

    public boolean equalsCalendar(Calendar cal) {
        return this._$49583[cal.get(13)] && this._$49625[cal.get(11)] && this._$49626[cal.get(12)] && this._$49627[cal.get(2)] && this._$49628[cal.get(7) - 1] && this._$49629[cal.get(5) - 1] && this._$49584[0];
    }

    private boolean _$49657(CrontabEntry ceb) {
        if (!this.getSeconds().equals(ceb.getSeconds())) {
            return false;
        } else if (!this.getMinutes().equals(ceb.getMinutes())) {
            return false;
        } else if (!this.getHours().equals(ceb.getHours())) {
            return false;
        } else if (!this.getDaysOfWeek().equals(ceb.getDaysOfWeek())) {
            return false;
        } else if (!this.getDaysOfMonth().equals(ceb.getDaysOfMonth())) {
            return false;
        } else if (!this.getMonths().equals(ceb.getMonths())) {
            return false;
        } else {
            return this.getYear().equals(ceb.getYear());
        }
    }
}
